package cn.matezk.lianlian.dao;

import cn.matezk.lianlian.model.NotifyRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NotifyRecordDao {
    int insertSelective(NotifyRecord record);
    int updateByBizId(NotifyRecord record);
    int updateByPrimaryKeySelective(NotifyRecord record);
    NotifyRecord selectByBizId(String bizId);
    List<NotifyRecord> selectWaitNotifyByMethod(String method);
    int deleteByDeviceId(String deviceId);
    List<NotifyRecord> selectRepeatNotify();
    int cancel(@Param("deviceId") String deviceId, @Param("eventCode") String eventCode);
    int cancelRepeatNotify(@Param("eventId") String eventId, @Param("mobile") String mobile);
}
